package efuliBusiness.efuliApi;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import efuliBusiness.ebuyOpenPlatformUtil.OpenPlatformHttp;


/**
 * Created by yangxianming on 2018/5/24.
 */
public class Cashvoucher {
    private String url = "/api/cashvoucher";
    private OpenPlatformHttp openPlatformHttp = new OpenPlatformHttp();

    public Cashvoucher(String domain){
        url = domain + url;
    }

    public JSONObject efuli_cashvoucher_freeze(JSONObject param){
        return JSON.parseObject(openPlatformHttp.sendHttp(url, param, "efuli.cashvoucher.freeze"));
    }
    public JSONObject efuli_cashvoucher_unfreeze(JSONObject param){
        return JSON.parseObject(openPlatformHttp.sendHttp(url, param, "efuli.cashvoucher.unfreeze"));
    }
    public JSONObject efuli_cashvoucher_send(JSONObject param){
        return JSON.parseObject(openPlatformHttp.sendHttp(url, param, "efuli.cashvoucher.send"));
    }
    public JSONObject efuli_cashvoucher_query(JSONObject param){
        return JSON.parseObject(openPlatformHttp.sendHttp(url, param, "efuli.cashvoucher.query"));
    }
    public JSONObject efuli_cashvoucher_directsend(JSONObject param){
        return JSON.parseObject(openPlatformHttp.sendHttp(url, param, "efuli.cashvoucher.directsend"));
    }
    public JSONObject efuli_cashvoucher_dailybill(JSONObject param){
        return JSON.parseObject(openPlatformHttp.sendHttp(url, param, "efuli.cashvoucher.dailybill"));
    }
}
